package com.eol.entity.po.content;

import com.alibaba.fastjson.JSONArray;
import io.swagger.annotations.ApiModel;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Transient;
import javax.validation.constraints.NotNull;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;


/**
 * 资讯表
 *
 * @author liulinhui
 * @email 1249055292@qq.com
 * @date 2020-05-31 10:46:17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel("资讯表")
public class ZNews implements Serializable {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "ID")
    @Id
    private String id;

    @ApiModelProperty(value = "标题")
    @NotNull(message = "标题不能为空")
    private String title;

    @ApiModelProperty(value = "标签")
    private String label;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "链接地址")
    private String url;

    @ApiModelProperty(value = "是否外部资讯 1：不是  2：是")
    @NotNull(message = "是否外部资讯不能为空")
    private Integer isOutside;

    @ApiModelProperty(value = "发布人")
    private String issuer;

    @ApiModelProperty(value = "发布时间")
    private Date publishTime;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "阅读")
    private Long readCount;

    @ApiModelProperty(value = "点赞")
    private Long zanCount;

    @ApiModelProperty(value = "评论")
    private Long commentCount;

    @ApiModelProperty(value = "1:新闻 2：职位")
    private Integer type;

    @ApiModelProperty(value = "上架时间")
    private Date upTime;

    @ApiModelProperty(value = "下架时间")
    private Date downTime;

    @ApiModelProperty(value = "有效星期  1-7")
    @Column(name = "week_days")
    private JSONArray weekDays;

    @ApiModelProperty(value = "公司名字")
    private String companyName;

    @ApiModelProperty(value = "公司性质")
    private String companyQuality;

    @ApiModelProperty(value = "公司规模")
    private String companyScale;

    @ApiModelProperty(value = "公司行业")
    private String companyIndustry;

    @ApiModelProperty(value = "薪资上限")
    private BigDecimal salaryUp;

    @ApiModelProperty(value = "薪资下限")
    private BigDecimal salaryDown;

    @ApiModelProperty(value = "职位申请URL")
    private String jobUrl;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "区")
    private String area;

    @ApiModelProperty(value = "省code")
    private String provinceCode;

    @ApiModelProperty(value = "市code")
    private String cityCode;

    @ApiModelProperty(value = "区code")
    private String areaCode;

    @ApiModelProperty(value = "商户ID")
    private String merchantId;

    @ApiModelProperty(value = "商户ID List")
    @Transient
    private List<String> merchantIdList;
    @Transient
    private Date startTime;
    @Transient
    private Date endTime;

}
